/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.persistencia.domain;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.validation.constraints.NotNull;

/**
 *
 * @author kenny
 */
@Embeddable
public class PersonaxperfilPK implements Serializable {
    @Basic(optional = false)
    @NotNull
    @Column(name = "PrsId")
    private int prsId;
    @Basic(optional = false)
    @NotNull
    @Column(name = "nPrfId")
    private int nPrfId;

    public PersonaxperfilPK() {
    }

    public PersonaxperfilPK(int prsId, int nPrfId) {
        this.prsId = prsId;
        this.nPrfId = nPrfId;
    }

    public int getPrsId() {
        return prsId;
    }

    public void setPrsId(int prsId) {
        this.prsId = prsId;
    }

    public int getNPrfId() {
        return nPrfId;
    }

    public void setNPrfId(int nPrfId) {
        this.nPrfId = nPrfId;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) prsId;
        hash += (int) nPrfId;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof PersonaxperfilPK)) {
            return false;
        }
        PersonaxperfilPK other = (PersonaxperfilPK) object;
        if (this.prsId != other.prsId) {
            return false;
        }
        if (this.nPrfId != other.nPrfId) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.persistencia.domain.PersonaxperfilPK[ prsId=" + prsId + ", nPrfId=" + nPrfId + " ]";
    }
    
}
